package com.qcby.service.Impl;

import com.qcby.dao.AuctionHouseMapper;
import com.qcby.model.AuctionHouseModel;
import com.qcby.model.Select;
import com.qcby.service.AuctionHouseService;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: Tom
 * @Date: 2021/07/20/15:39
 * @Description:
 */
@Service
public class AuctionHouseServiceImpl implements AuctionHouseService {
  @Autowired
  AuctionHouseMapper auctionHouseMapper;
  @Override
  public List<AuctionHouseModel> list(Integer index,Integer size) {
    return auctionHouseMapper.select(index,size);
  }

  @Override
  public AuctionHouseModel selectByEquipName(String equipName) {
    return auctionHouseMapper.selectByEquipName(equipName);
  }

  @Override
  public AuctionHouseModel selectById(Integer id) {
    return auctionHouseMapper.selectById(id);
  }

  @Override
  public Integer selectCount() {
    return auctionHouseMapper.count();
  }

  @Override
  public AuctionHouseModel selectByPrice(Select select) {
    return auctionHouseMapper.selectByPrice(select);
  }
}
